import querystring from 'querystring';

module.exports = {
    getTopics: (page = 1, limit = 20, tab = 'all')=> {
        // page=1&limit=20&tab=all&mdrender=true
        var obj = {
            page: page,
            limit: limit,
            tab: tab,
            mdrender: true
        };
        return "https://cnodejs.org/api/v1/topics?" + querystring.stringify(obj);
    }
}